home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1997-03-18 | 2.4 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Mar 17 20:06:41 1997, modified Mon Mar 17 20:06:41 1997, creator 'CWIE', type ASCII, 1675 bytes "ooftst22.cpp" , at 0x70b 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 6f 6f 66 74 73 74 | 32 32 2e 63 70 70 00 00 |..ooftst|22.cpp..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 06 8b 00 | 00 01 9a af 53 9b 21 af |........|....S.!.|
|00000060| 53 9b 21 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |S.!.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 61 43 00 00 |........|....aC..|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 6f 6f 66 69 6c 65 |#include| "oofile|
|00000090| 2e 68 22 0d 2f 2f 20 43 | 6f 70 79 72 69 67 68 74 |.h".// C|opyright|
|000000a0| 20 31 39 39 36 20 41 2e | 44 2e 20 53 6f 66 74 77 | 1996 A.|D. Softw|
|000000b0| 61 72 65 2e 20 41 6c 6c | 20 52 69 67 68 74 73 20 |are. All| Rights |
|000000c0| 52 65 73 65 72 76 65 64 | 0d 0d 2f 2f 20 4f 4f 46 |Reserved|..// OOF|
|000000d0| 54 45 53 54 32 32 0d 0d | 2f 2f 20 74 68 69 73 20 |TEST22..|// this |
|000000e0| 73 61 6d 70 6c 65 20 74 | 65 73 74 73 20 73 6f 6d |sample t|ests som|
|000000f0| 65 20 63 6f 6d 6d 6f 6e | 20 65 72 72 6f 72 20 63 |e common| error c|
|00000100| 6f 6e 64 69 74 69 6f 6e | 73 20 74 68 61 74 20 73 |ondition|s that s|
|00000110| 68 6f 75 6c 64 20 67 65 | 6e 65 72 61 74 65 20 72 |hould ge|nerate r|
|00000120| 75 6e 74 69 6d 65 20 65 | 72 72 6f 72 73 0d 2f 2f |untime e|rrors.//|
|00000130| 20 4e 6f 74 65 3a 20 23 | 64 65 66 69 6e 65 20 4f | Note: #|define O|
|00000140| 4f 46 5f 44 65 62 75 67 | 20 74 6f 20 65 6e 73 75 |OF_Debug| to ensu|
|00000150| 72 65 20 61 6c 6c 20 65 | 72 72 6f 72 73 20 61 72 |re all e|rrors ar|
|00000160| 65 20 74 72 61 70 70 65 | 64 0d 0d 2f 2f 20 53 69 |e trappe|d..// Si|
|00000170| 6d 70 6c 65 20 73 74 72 | 65 61 6d 20 49 2f 4f 20 |mple str|eam I/O |
|00000180| 69 73 20 75 73 65 64 20 | 74 6f 20 69 6e 74 65 72 |is used |to inter|
|00000190| 61 63 74 20 77 69 74 68 | 20 74 68 65 20 75 73 65 |act with| the use|
|000001a0| 72 2e 0d 23 69 6e 63 6c | 75 64 65 20 22 6f 6f 66 |r..#incl|ude "oof|
|000001b0| 69 6c 65 2e 68 22 0d 0d | 44 45 43 4c 41 52 45 5f |ile.h"..|DECLARE_|
|000001c0| 43 4c 41 53 53 28 64 62 | 54 65 73 74 32 32 29 0d |CLASS(db|Test22).|
|000001d0| 09 64 62 43 68 61 72 09 | 09 66 31 3b 0d 09 64 62 |.dbChar.|.f1;..db|
|000001e0| 55 6c 6f 6e 67 09 09 66 | 32 3b 0d 09 64 62 52 65 |Ulong..f|2;..dbRe|
|000001f0| 61 6c 09 09 66 33 3b 20 | 20 0d 09 0d 09 64 62 54 |al..f3; | ....dbT|
|00000200| 65 73 74 32 32 28 29 20 | 3a 20 66 31 28 32 30 2c |est22() |: f1(20,|
|00000210| 20 22 46 31 22 2c 20 6b | 49 6e 64 65 78 65 64 29 | "F1", k|Indexed)|
|00000220| 2c 0d 09 09 09 09 66 32 | 28 22 46 32 22 2c 20 6b |,.....f2|("F2", k|
|00000230| 49 6e 64 65 78 65 64 29 | 2c 0d 09 09 09 09 66 33 |Indexed)|,.....f3|
|00000240| 28 22 46 33 22 2c 20 6b | 49 6e 64 65 78 65 64 29 |("F3", k|Indexed)|
|00000250| 0d 7b 7d 3b 0d 09 7d 3b | 0d 0d 0d 2f 2f 20 73 68 |.{};..};|...// sh|
|00000260| 6f 77 20 61 20 63 6f 6d | 6d 6f 6e 20 74 65 63 68 |ow a com|mon tech|
|00000270| 6e 69 71 75 65 2c 20 75 | 73 69 6e 67 20 6f 75 72 |nique, u|sing our|
|00000280| 20 6f 77 6e 20 63 6c 61 | 73 73 20 74 6f 20 63 6f | own cla|ss to co|
|00000290| 6e 74 61 69 6e 20 61 6c | 6c 20 74 68 65 20 64 61 |ntain al|l the da|
|000002a0| 74 61 62 61 73 65 0d 63 | 6c 61 73 73 20 6d 79 44 |tabase.c|lass myD|
|000002b0| 61 74 61 62 61 73 65 20 | 3a 20 70 75 62 6c 69 63 |atabase |: public|
|000002c0| 20 54 45 53 54 5f 43 4f | 4e 4e 45 43 54 0d 7b 0d | TEST_CO|NNECT.{.|
|000002d0| 70 75 62 6c 69 63 3a 0d | 09 6d 79 44 61 74 61 62 |public:.|.myDatab|
|000002e0| 61 73 65 28 29 3b 0d 09 | 7e 6d 79 44 61 74 61 62 |ase();..|~myDatab|
|000002f0| 61 73 65 28 29 3b 0d 09 | 0d 09 64 62 54 65 73 74 |ase();..|..dbTest|
|00000300| 32 32 2a 20 20 20 20 20 | 09 20 64 62 54 65 73 74 |22* |. dbTest|
|00000310| 3b 0d 7d 3b 0d 0d 6d 79 | 44 61 74 61 62 61 73 65 |;.};..my|Database|
|00000320| 3a 3a 6d 79 44 61 74 61 | 62 61 73 65 28 29 0d 7b |::myData|base().{|
|00000330| 0d 09 64 62 54 65 73 74 | 20 3d 20 6e 65 77 20 64 |..dbTest| = new d|
|00000340| 62 54 65 73 74 32 32 3b | 0d 7d 0d 0d 0d 6d 79 44 |bTest22;|.}...myD|
|00000350| 61 74 61 62 61 73 65 3a | 3a 7e 6d 79 44 61 74 61 |atabase:|:~myData|
|00000360| 62 61 73 65 28 29 0d 7b | 0d 09 64 65 6c 65 74 65 |base().{|..delete|
|00000370| 20 64 62 54 65 73 74 3b | 0d 7d 0d 0d 0d 0d 69 6e | dbTest;|.}....in|
|00000380| 74 20 6d 61 69 6e 28 29 | 0d 7b 0d 09 63 6f 75 74 |t main()|.{..cout|
|00000390| 20 3c 3c 20 22 4f 4f 46 | 49 4c 45 20 56 61 6c 69 | << "OOF|ILE Vali|
|000003a0| 64 61 74 69 6f 6e 20 53 | 75 69 74 65 20 2d 20 54 |dation S|uite - T|
|000003b0| 65 73 74 20 32 32 5c 6e | 22 0d 09 09 20 3c 3c 20 |est 22\n|"... << |
|000003c0| 22 54 68 69 73 20 74 65 | 73 74 73 20 76 61 72 69 |"This te|sts vari|
|000003d0| 6f 75 73 20 63 6f 6d 6d | 6f 6e 20 65 72 72 6f 72 |ous comm|on error|
|000003e0| 73 20 74 68 61 74 20 73 | 68 6f 75 6c 64 20 62 65 |s that s|hould be|
|000003f0| 20 70 69 63 6b 65 64 20 | 75 70 20 77 69 74 68 5c | picked |up with\|
|00000400| 6e 22 0d 09 09 20 3c 3c | 20 22 72 75 6e 74 69 6d |n"... <<| "runtim|
|00000410| 65 20 65 72 72 6f 72 73 | 2e 5c 6e 5c 6e 22 3b 0d |e errors|.\n\n";.|
|00000420| 09 0d 09 63 6f 75 74 20 | 3c 3c 20 22 54 65 73 74 |...cout |<< "Test|
|00000430| 20 64 65 66 69 6e 69 6e | 67 20 61 20 64 62 54 61 | definin|g a dbTa|
|00000440| 62 6c 65 20 6f 62 6a 65 | 63 74 20 77 69 74 68 6f |ble obje|ct witho|
|00000450| 75 74 20 61 20 70 72 65 | 63 65 64 69 6e 67 20 64 |ut a pre|ceding d|
|00000460| 62 43 6f 6e 6e 65 63 74 | 2e 20 5c 6e 22 0d 09 09 |bConnect|. \n"...|
|00000470| 20 3c 3c 09 22 54 68 69 | 73 20 77 69 6c 6c 20 61 | <<."Thi|s will a|
|00000480| 6c 73 6f 20 67 65 6e 65 | 72 61 74 65 20 63 6f 6d |lso gene|rate com|
|00000490| 70 6c 61 69 6e 74 73 20 | 66 72 6f 6d 20 65 61 63 |plaints |from eac|
|000004a0| 68 20 66 69 65 6c 64 20 | 69 6e 20 74 68 65 20 64 |h field |in the d|
|000004b0| 62 54 65 73 74 32 32 5c | 6e 5c 6e 22 3b 0d 09 64 |bTest22\|n\n";..d|
|000004c0| 62 54 65 73 74 32 32 20 | 20 20 20 09 20 73 68 6f |bTest22 | . sho|
|000004d0| 75 6c 64 47 65 6e 65 72 | 61 74 65 52 75 6e 74 69 |uldGener|ateRunti|
|000004e0| 6d 65 45 72 72 6f 72 3b | 0d 09 0d 09 63 6f 75 74 |meError;|....cout|
|000004f0| 20 3c 3c 20 22 4e 6f 77 | 20 74 65 73 74 20 64 65 | << "Now| test de|
|00000500| 66 69 6e 69 6e 67 20 61 | 20 64 62 43 68 61 72 20 |fining a| dbChar |
|00000510| 6f 62 6a 65 63 74 20 77 | 69 74 68 6f 75 74 20 61 |object w|ithout a|
|00000520| 20 70 72 65 63 65 64 69 | 6e 67 20 64 62 54 61 62 | precedi|ng dbTab|
|00000530| 6c 65 3a 5c 6e 5c 6e 22 | 3b 0d 09 64 62 43 68 61 |le:\n\n"|;..dbCha|
|00000540| 72 20 20 20 20 09 20 73 | 68 6f 75 6c 64 41 6c 73 |r . s|houldAls|
|00000550| 6f 47 65 6e 65 72 61 74 | 65 52 75 6e 74 69 6d 65 |oGenerat|eRuntime|
|00000560| 45 72 72 6f 72 28 32 30 | 2c 20 22 64 62 43 68 61 |Error(20|, "dbCha|
|00000570| 72 20 74 6f 20 66 61 69 | 6c 22 29 3b 0d 09 0d 09 |r to fai|l");....|
|00000580| 0d 09 63 6f 75 74 20 3c | 3c 20 22 4e 6f 77 20 74 |..cout <|< "Now t|
|00000590| 65 73 74 20 64 65 66 69 | 6e 69 6e 67 20 61 20 6f |est defi|ning a o|
|000005a0| 6f 66 43 68 61 72 20 61 | 6e 64 20 73 61 79 69 6e |ofChar a|nd sayin|
|000005b0| 67 20 69 74 20 68 61 73 | 20 61 20 6b 65 79 77 6f |g it has| a keywo|
|000005c0| 72 64 20 69 6e 64 65 78 | 3a 5c 6e 5c 6e 22 3b 0d |rd index|:\n\n";.|
|000005d0| 09 6f 6f 66 43 68 61 72 | 09 74 68 65 44 61 74 65 |.oofChar|.theDate|
|000005e0| 3b 0d 09 74 68 65 44 61 | 74 65 2e 69 6e 64 65 78 |;..theDa|te.index|
|000005f0| 57 6f 72 64 73 28 29 3b | 0d 0d 09 63 6f 75 74 20 |Words();|...cout |
|00000600| 3c 3c 20 22 54 68 69 73 | 20 74 65 73 74 73 20 73 |<< "This| tests s|
|00000610| 69 64 65 20 65 66 66 65 | 63 74 73 20 69 6e 20 64 |ide effe|cts in d|
|00000620| 65 63 6c 61 72 69 6e 67 | 20 61 20 64 61 74 61 62 |eclaring| a datab|
|00000630| 61 73 65 5c 6e 22 0d 09 | 09 20 3c 3c 20 22 62 75 |ase\n"..|. << "bu|
|00000640| 74 20 6e 65 76 65 72 20 | 6f 70 65 6e 69 6e 67 20 |t never |opening |
|00000650| 69 74 2e 20 54 68 69 73 | 20 69 73 20 6c 65 67 61 |it. This| is lega|
|00000660| 6c 2c 20 62 75 74 20 68 | 61 73 20 63 61 75 73 65 |l, but h|as cause|
|00000670| 64 20 70 72 6f 62 6c 65 | 6d 73 20 69 6e 20 74 68 |d proble|ms in th|
|00000680| 65 20 70 61 73 74 5c 6e | 5c 6e 22 3b 0d 09 6d 79 |e past\n|\n";..my|
|00000690| 44 61 74 61 62 61 73 65 | 2a 20 20 74 68 65 44 42 |Database|* theDB|
|000006a0| 20 3d 20 6e 65 77 20 6d | 79 44 61 74 61 62 61 73 | = new m|yDatabas|
|000006b0| 65 3b 0d 09 0d 09 64 65 | 6c 65 74 65 20 74 68 65 |e;....de|lete the|
|000006c0| 44 42 3b 0d 09 0d 09 63 | 6f 75 74 20 3c 3c 20 65 |DB;....c|out << e|
|000006d0| 6e 64 6c 20 3c 3c 22 54 | 65 73 74 20 43 6f 6d 70 |ndl <<"T|est Comp|
|000006e0| 6c 65 74 65 64 22 20 3c | 3c 20 65 6e 64 6c 3b 0d |leted" <|< endl;.|
|000006f0| 09 0d 09 72 65 74 75 72 | 6e 20 45 58 49 54 5f 53 |...retur|n EXIT_S|
|00000700| 55 43 43 45 53 53 3b 0d | 7d 20 0d 00 00 00 00 00 |UCCESS;.|} ......|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000790| 72 69 6f 72 20 49 44 45 | 20 31 2e 36 2e 32 62 34 |rior IDE| 1.6.2b4|
|000007a0| 6c 20 33 2e 30 2e 32 00 | 00 00 00 01 00 00 4a cb |l 3.0.2.|......J.|
|000007b0| 0c 6f 6f 66 74 73 74 32 | 32 2e 63 70 70 32 02 00 |.ooftst2|2.cpp2..|
|000007c0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000007d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 b0 1b 75 fe 00 00 | 00 00 00 00 01 9a 00 00 |....u...|........|
|00000800| 00 00 00 01 00 00 4a 47 | ad 92 db 9d 0b 41 70 70 |......JG|.....App|
|00000810| 4d 61 6b 65 72 36 38 4b | 50 43 44 45 20 31 2e 36 |Maker68K|PCDE 1.6|
|00000820| 62 31 32 00 00 00 00 00 | 00 00 00 00 00 00 00 01 |b12.....|........|
|00000830| 00 00 86 af ad c6 5d 0d | 0f 41 70 70 4d 61 6b 65 |......].|.AppMake|
|00000840| 72 36 38 4b 2e 73 65 61 | 00 00 00 00 00 00 00 00 |r68K.sea|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 01 00 00 3c 46 |........|......<F|
|00000860| ad 6f 32 60 17 4f 62 6a | 65 63 74 20 46 61 63 74 |.o2`.Obj|ect Fact|
|00000870| 6f 72 79 20 36 38 6b 20 | 30 2e 32 32 00 00 00 00 |ory 68k |0.22....|
|00000880| 00 00 00 04 00 01 00 01 | 00 00 00 48 00 09 4d 6f |........|...H..Mo|
|00000890| 6e 61 63 6f 00 30 ff c8 | 2d 0a 00 08 a3 8a 00 00 |naco.0..|-.......|
|000008a0| 02 56 d1 b0 02 49 02 a4 | 02 56 02 56 00 00 00 06 |.V...I..|.V.V....|
|000008b0| 00 04 00 56 00 04 02 32 | 03 1e 00 56 00 04 02 32 |...V...2|...V...2|
|000008c0| 03 1e af 53 62 e1 00 00 | 00 00 00 00 00 00 00 00 |...Sb...|........|
|000008d0| 00 00 01 00 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000008e0| 00 00 00 46 02 49 08 98 | 2b 56 00 00 00 1c 00 46 |...F.I..|+V.....F|
|000008f0| 00 01 4d 57 42 42 00 00 | 00 12 4d 50 53 52 00 00 |..MWBB..|..MPSR..|
|00000900| 00 1e 03 f0 ff ff 00 00 | 00 00 00 00 00 00 03 ed |........|........|
|00000910| ff ff 00 00 00 08 02 49 | 03 bc 00 00 00 00 00 00 |.......I|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+